package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Car;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface CarMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Car record);

    Car selectByPrimaryKey(Long id);

    List<Car> selectAll();

    int updateByPrimaryKey(Car record);

    // 高级 查询
    int queryCount(QueryObject qo);
    List<Car> queryList(QueryObject qo);

    Car selectByInsureId(Long insureId);

    void upgrade(Long id);
}